Skip to main content

GetClassType

Returns a type of the ApiSection class.

Syntax

expression.GetClassType();

expression - A variable that represents a ApiSection class.

Parameters

This method doesn't have any parameters.

Returns

"section"

Example

This example gets a class type and inserts it into the document.

let doc = Api.GetDocument();
let paragraph = doc.GetElement(0);
let section = doc.GetFinalSection();
section.SetPageMargins(720, 720, 720, 720);
section.SetPageSize(7200, 4320);
let classType = section.GetClassType();
paragraph.AddText("Class Type = " + classType);